const KoaRouter = require("@koa/router");
const fileController = require("../controller/file.controller.js");
const { handleFile1, handleFile2 } = require("../middleware/file.js");
const verifyToken = require("../middleware/verifyToken.js");

const userRouter = new KoaRouter({ prefix: "/file" });

userRouter.post("/upload", verifyToken, handleFile1, fileController.upload);
userRouter.post("/blogUpload", verifyToken, handleFile2, fileController.upload);

module.exports = userRouter;
